Skip to content

[Fix-16617][Seatunnel] Use master option for engine deploy mode#18315

Open
JinRudy wants to merge 1 commit into
apache:devfrom
JinRudy:fix/seatunnel-master-option
Open

[Fix-16617][Seatunnel] Use master option for engine deploy mode#18315
JinRudy wants to merge 1 commit into
apache:devfrom
JinRudy:fix/seatunnel-master-option

Conversation

@JinRudy
Copy link
Copy Markdown

@JinRudy JinRudy commented Jun 2, 2026

Was this PR generated or assisted by AI?

YES. OpenAI Codex assisted with the change and verification.

Purpose of the pull request

Close #16617.

SeaTunnel 2.3.7 still uses --deploy-mode for the Spark and Flink starters. The deprecation warning reported in the issue comes from the seatunnel.sh client path, where -e / --deploy-mode is deprecated in favor of -m / --master.

This PR keeps the change scoped to the SeaTunnel engine task command generated for seatunnel.sh.

Brief change log

  • Use --master for the SeaTunnel engine task deploy mode argument.

Verify this pull request

  • git diff --check
  • JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/bin:$PATH ./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel -am -Dtest=SeatunnelTaskTest,SeatunnelParametersTest -Dsurefire.failIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false -Dspotless.skip=true -Danalyze.skip=true -Djacoco.skip=true -DskipDepCheck=true test
  • JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/bin:$PATH ./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel -DskipTests -Djacoco.skip=true -DskipDepCheck=true spotless:check

Pull Request Notice

This pull request does not contain incompatible changes.

@boring-cyborg
Copy link
Copy Markdown

boring-cyborg Bot commented Jun 2, 2026

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

@SbloodyS SbloodyS added first time contributor First-time contributor bug Something isn't working labels Jun 3, 2026
@SbloodyS SbloodyS added this to the 3.5.0 milestone Jun 3, 2026
Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please using english in commit messages.

public List<String> buildOptions() throws Exception {
List<String> args = super.buildOptions();
args.add(DEPLOY_MODE_OPTIONS);
args.add("--deploy-mode");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the related tests.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thanks. I removed the test change and rewrote the branch with a single English commit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still unaddressed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. I reverted the Spark/constant cleanup and kept this scoped to the SeaTunnel engine path; the PR now changes only SeatunnelEngineTask.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube Cloud

@JinRudy JinRudy force-pushed the fix/seatunnel-master-option branch from 4152d48 to adbc2d8 Compare June 5, 2026 03:03
@github-actions github-actions Bot removed the test label Jun 5, 2026
@JinRudy JinRudy force-pushed the fix/seatunnel-master-option branch from adbc2d8 to 3b89bd5 Compare June 5, 2026 08:14
@JinRudy JinRudy force-pushed the fix/seatunnel-master-option branch from 3b89bd5 to 634a73f Compare June 5, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working first time contributor First-time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [seatunnel task] run the seatunnel task ,report "-e and --deploy-mode deprecated in 2.3.1, please use -m and --master instead of it"

2 participants